<div class="layui-fluid user-info">
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="panel up">
                    <div class="up-l">
                        <div class="u-l-box">
                            <div class="avatar">
                                <img src="{$user.avatar}" alt="">
                            </div>
                            <div class="u-l-info">
                                <p>
                                    {$user.nickname|default=$user.username}
                                    <button type="button" onclick="save_nickname('{:url("user/index/edit_user")}')">
                                        <i class="layui-icon layui-icon-edit"></i>
                                    </button>
                                </p>
                                <p class="sign">
                                    {$user.sign_name|default='你还没有任何签名'}
                                    <button type="button"  onclick="save_sign('{:url("user/index/edit_user")}')">
                                        <i class="layui-icon layui-icon-edit"></i>
                                    </button>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="up-r">
                        <a href="javascript:vaildate_email('{:url("user/index/user_bind_email")}','{:url("user/login/send_email_code")}');">绑定邮箱</a>
                    </div>
                    <div class="clear-both"></div>
                </div>
            </div>
        </div>
    </div>
</div>
